<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS3 Tranform2D 转换</title>
</head>
<style>
*{
    margin: 0;
    padding: 0;
}
.container{
    width: 300px;
    height: 300px;
    border: 1px solid red;
}
.child{
    display: inline-block;
    width: 100px;
    height: 100px;
    background-color: red;
    /* transform: translateX(100px) translateY(100px) rotate(60deg); */
    /* transform: translateX(100%) translateY(100%) rotate(60deg); */
    /* 过渡 */
    transition: transform 3s;
    
}
.container:hover .child{
    transform: translate(100px,100px) rotate(45deg) scaleX(0.5) scaleY(0.5) skew(45deg);
}
</style>
<body>
    <div class="container">
        <div class="child"></div>
        <div class="child"></div>
    </div>
</body>
</html>